package org.github.rayson517.easyplatform.message.model;

import java.io.Serializable;

/**
 * 推送信息
 * @author rayson517
 *
 */
public class MessageInfoModel implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 推送类型："broadcast/topics/clients" <=> 广播、按主题、点对点
	 */
	private String type;
	
	/**
	 * 命名空间
	 */
	private String namespace;
	
	/**
	 * 鉴权秘钥
	 */
	private String accessKey;
	
	/**
	 * 订阅主题
	 */
	private String[] topics;
	
	/**
	 * 推送客户端
	 */
	private String[] clients;
	
	/**
	 * 消息体
	 */
	private Object body;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getNamespace() {
		return namespace;
	}

	public void setNamespace(String namespace) {
		this.namespace = namespace;
	}

	public String getAccessKey() {
		return accessKey;
	}

	public void setAccessKey(String accessKey) {
		this.accessKey = accessKey;
	}

	public String[] getTopics() {
		return topics;
	}

	public void setTopics(String[] topics) {
		this.topics = topics;
	}

	public String[] getClients() {
		return clients;
	}

	public void setClients(String[] clients) {
		this.clients = clients;
	}

	public Object getBody() {
		return body;
	}

	public void setBody(Object body) {
		this.body = body;
	}
}
